import { requestClient } from '#/api/request';

export namespace TaskServiceTypeApi {
  export interface TaskServiceTypeRecord {
    id: number;
    name: string;
    created_at: string;
    updated_at: string;
  }
}

export async function getTaskServiceTypesApi() {
  return requestClient.get<TaskServiceTypeApi.TaskServiceTypeRecord[]>(
    '/api/tenant/task-service-types',
  );
}
